﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Emz.Core.Models;

namespace Legazpi.Payroll.Services.Interfaces
{
    public interface IUserService
    {
       User GetById(int id);
       User GetByUserName(string username);
       User GetByUserNameAndPassword(string username, string password);
       IEnumerable<User> GetAll();
       
       void AddToRole(User user, List<Role> roles);

       void Add(User user);
       void Update(User user);
       void Delete(int id);       
       bool Save();
    }
}
